package com.unisound.tracelog.common.model.span;

import org.apache.commons.lang3.StringUtils;

public class Tag {
    private Long id;

    private Long traceId;
    private String tagKey;
    private String tagValue;

    public Tag(Long id, Long traceId, String tagKey, String tagValue) {
        this.id = id;
        this.traceId = traceId;
        this.tagKey = StringUtils.trimToNull(tagKey);
        this.tagValue = StringUtils.trimToNull(tagValue);
    }

    public Tag() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTraceId() {
        return traceId;
    }

    public void setTraceId(Long traceId) {
        this.traceId = traceId;
    }

    public String getTagKey() {
        return tagKey;
    }

    public void setTagKey(String tagKey) {
        this.tagKey = StringUtils.trimToNull(tagKey);
    }

    public String getTagValue() {
        return tagValue;
    }

    public void setTagValue(String tagValue) {
        this.tagValue = StringUtils.trimToNull(tagValue);
    }
}
